package com.example.product.service.impl;

import com.example.product.service.ProductService;
import com.example.product.vo.Product;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {

    @Override
    public Product getById(Long productId) {
        Product product = new Product();
        product.setId(1L);
        product.setName("bmw x3");
        product.setNum(1);
        product.setPrice(BigDecimal.valueOf(330000));

        return product;
    }
}
